<%@page import="systems.MailSystem"%>
<
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp" />
	
	<script type="text/javascript" src="/js/webmail_running.js"></script>
	
	<h3><span>System Webmail Running </span></h2>
	
	<form method="get" class="form-horizontal">
		<div class="control-group">
		    <label class="control-label" for="inputDomain">Website Id</label>
		    <div class="controls">
		    	<%=MailSystem.getId()%>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="inputTitle">Email Sended</label>
		    <div class="controls">
		    	<%=MailSystem.getCount() %>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="inputStatus">Current Page Running</label>
		    <div class="controls">
		    	<%=MailSystem.getCurrentPage() %>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="inputSender">Limit per 1 run</label>
		    <div class="controls">
		    	<%=MailSystem.getLimit() %>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="inputContentUrl">Status</label>
		    <div class="controls">
		    	<%=MailSystem.getStatus() == 0 ? "Running" : "Finished" %>
		    </div>
		</div>
		
		<div class="control-group">
		    <div class="controls">
		      	<button type="submit" class="btn">Refresh</button>
		      	&nbsp;
		      	<a href="/webmail/reset" class="reset btn">Reset</a>
		    </div>
		</div>
		
	</form>
	
<jsp:include page="/layouts/footer.jsp" />